import java.io.IOException;
import java.io.InputStream;

public class IOBlock implements Runnable {
	private InputStream in;

	public IOBlock(InputStream in) {
		super();
		this.in = in;
	}

	@Override
	public void run() {
		try {
			in.read();
		} catch (IOException e) {
			e.printStackTrace();
		}
		if (Thread.currentThread().isInterrupted()) {
			// 
			System.out.println("is interput");
			
		}
		
		System.out.println("end");

	}

}
